package community.hospital.entity.request;

import community.hospital.common.Add;
import community.hospital.common.BaseIndex;
import community.hospital.common.Update;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @Author：ydj
 * @Date：2023/1/26 21:03
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class MenuRequest  extends BaseIndex implements Serializable {
    private static final long serialVersionUID = -6712279028365084856L;
    @NotBlank(message = "请输入权限码",groups = {Add.class, Update.class})
    private String menuKey;
    @NotBlank(message = "请简要描述一下权限信息",groups = {Add.class,Update.class})
    private String description;
    private Long pid;
}
